<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>批量发货(换货)</title>
    <link rel="stylesheet" href="../../lib/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../font/iconfont.css">
    <link rel="stylesheet" href="../../css/public.css">
    <link rel="stylesheet" href="../../css/orderform/order.css">
    <link rel="stylesheet" href="../../css/tuihuo/Hpiliang.css">
    <script src="../../lib/jquery/jquery-3.6.0.min.js"></script>
    <script src="../../lib/session.js"></script>
    <script src="../../javaScript/public.js"></script>
    <script src="../../javaScript/orderform/orderformlist.js"></script>
    <script src="../../lib/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <script src="../../javaScript/orderform/data.js"></script>
    <style>
        .inout1{
            width: 200px;
            height: 40px;
    line-height: 40px;
        }
    </style>
</head>
<body>
    <div class="container"></div>
    <div class="container orderm">
        <span class="title">批量发货</span>
        <table class="orderbiao">
            <thead>
                <tr>
                    <td>换货单号</td>
                    <td>收货人</td>
                    <td>手机号</td>
                    <td>收货地点</td>
                    <td>邮政编码</td>
                    <td>快递公司</td>
                    <td>
                        <div>
                            <input type="checkbox" value=""><span>已收货</span>
                        </div>
                    </td>
                 
                </tr>
            </thead>
            <tbody class="ordermsg">
            
            </tbody>
        </table>
        <button type="button" class="mbutton-blue long-mbutton juzhong" data-toggle="modal" data-target="#myModal">
            确定收货
          </button>
    </div>
</body>
<div id="myModal" class="modal fade remove" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content remove-content">
            <span>确定当前商品已收货吗?</span>
            <p>
                <button class="mbutton-blueb yes" data-dismiss="modal">确定</button>
                <button class="mbutton-white" data-dismiss="modal">取消</button>
            </p>
        </div>
        
    </div>
</div>
<script>
    window.onload=function(){
        let item = sessionGet('msg')
        console.log(item);
        for(let i=0;i<item.length;i++){
                $('.ordermsg').append(`
                    <tr>
                        <td>
                            <a href="../huanhuoliebiao/huanhuoxinhuo.html">${item[i].换货单号}</a>   
                        </td>
                        <td>
                            ${item[i].收货信息.收货人}
                        </td>
                        <td>
                           ${item[i].买家电话}
                        </td>
                        <td>
                            ${item[i].收货信息.收货地址}
                        </td>
                        <td>
                            518000
                        </td>
                        <td>
                            <select name="" id="" class="minput">
                        <option value="请选择快递公司">请选择快递公司</option>
                        <option value="顺丰">顺丰</option>
                        <option value="中通">中通</option>
                        <option value="圆通">圆通</option>
                        <option value="申通">申通</option>
                        <option value="汇通">汇通</option>
                        <option value="韵达">韵达</option>
                        <option value="邮政">邮政</option>
                      </select>
                        </td>
                        <td>
                            <input type="text" class="inout1">
                        </td>
                    </tr>
                `)
        }
        $('.mbutton-blue').on('click',function(){
            $('.remove').modal('toggle')
        })
        $('.yes').click(function(){
            location.href='../../html/orderform/orderformlist.html'
        })
    }
</script>
</html>